package com.zxx.pattern.chainPattern.chain;

/**
 * 责任处理节点的抽象父类
 * @author zxx on 2021/1/25
 */
public abstract class Handler {

    protected Handler nextHandler;  //下一个责任链成员

    public Handler getNextHandler(){
        return nextHandler;
    }

    public void setNextHandler(Handler nextHandler) {
        this.nextHandler = nextHandler;
    }


    //传递过来的时间
    public abstract void handleMessage(int type);
}
